//
//  SMBButton.h
//  Simubang_iphone
//
//  Created by Kelly xu on 16/3/23.
//  Copyright © 2016年 Simubang. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void (^myblock)(UIButton *button);
typedef void (^beginblock)(UIButton *button);
typedef void (^endblock)(UIButton *button);
@interface SMBButton : UIButton{
    
}
PROPERTY_STRONG myblock block;
PROPERTY_STRONG beginblock beginblock;
PROPERTY_STRONG endblock endblock;
-(id)initWithFrame:(CGRect)frame title:(NSString*)title pressDown:(beginblock)beginblock out:(endblock)endblock;
-(id)initWithFrame:(CGRect)frame title:(NSString*)title pressed:(myblock)block;

/** 补充方法 **/
- (instancetype)initWithTitle:(NSString *)title
                    titleFont:(id)titleFont
               titleTextColor:(NSString *)titleTextColor
              backgroundColor:(NSString *)backgroundColor
                         icon:(UIImage *)icon
              backgroundImage:(UIImage *)backgroundImage
                      pressed:(myblock)block;
@end
